/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package javaapplication1;

/**
 *
 * @author alunoinf
 */
public class Comissionado extends Empregado {
    
    private double totalVenda;
    private double taxaComissao;
    
    public Comissionado(String cpf, double taxaComissao){
        super(cpf);
        this.taxaComissao = taxaComissao;
    }

    public double getTotalVenda() {
        return totalVenda;
    }

    public void setTotalVenda(double totalVenda) {
        this.totalVenda = totalVenda;
    }

    public double getTaxaComissao() {
        return taxaComissao;
    }

    public void setTaxaComissao(double taxaComissao) {
        this.taxaComissao = taxaComissao;
    }
    
    public void vender (double valorVenda){
        totalVenda = totalVenda + valorVenda;
    }
    
    @Override
    public double vencimento(){
        return super.vencimento() + (totalVenda*taxaComissao);
    }
    
    
}
